Made searchhistory clickable and new search made. Code cleanup.