Updated the code to ui-router and used ui-scref, ui-view and installed angular ui router