using angular.ui.router
improving structure of typescript