Reconfigured app.'s to work with ui-router
Adding states and child states