refactor a little bit of the backbone app