Search functionality

Common stuff is in searchButton