some light refactoring and bug-fixes, also added a search bar to the homepage