implemented view-controller system. refactored repositories to be accessed via getters.