Enable main window delete action
Macro for windows