updated the app to user ui-sref tags and incorporated the  object to fetch data from the server