refactored:
* created partials for all logic and iterations in the views
* refactored controllers