solved loading animation issue with ui-router