refactored the search form and setting up html structure