Made the mylecture part close when search is initiated