make sure the modal dialog is hidden when not in ticket view