working on connecting front end with back end data. refactoring views
accordingly