Fixes #614

@hbj, don't you think it time we introduce [ui-router](https://github.com/angular-ui/ui-router) , so we can break some of the tables into views and separate controllers