refactoring backbone/front end