added search functionality, started to refactor views to partials