improved $html.modal()