Refactored the way habit controller was called, it is now part of the base html file. This fixes an issue where controller was loading twice when a habit was selected. (this caused ng-view to reload)