Working modals on double click, and cancel button