deleted deprecated code
fixed search form behavior