Changed modal behavior

I am not sure if I have to keep using angular ui router.