Close search toolbar on switching views