Fixed using ui-router.