Hide Search button when switch is OFF

This should fix an issue where the search button remains visible, even when the switch is turned off.