Better handling of the hiding and showing of the focus button.