Modal factory need to use the controller passed into the modal options