Notification function called before the active layout gets deactivated.
This function is called after the operation.