Changed textctrl to searchctrl and fixed bug with deselection