fixed search button and also added conditional for title