auto enabled/disabled switch buttons in search view