added :animated option to dismiss_modal