used the resolve ui-route for preventing flickering