Refactor code

Navbar specialised per page
Navbar code not repeated
Queries from home page move to search page