Added a hook methods for when the floating panel is shown/hidden.