Changing route to the right page when its finished to undrafted