Converted to use the modal from ui-bootstrap.