Fixed problem where modal did not work for root controller