refactor front-end views