Added style fixes, new events for hiding reset search button, refacroring JS