Add handler for cmd-w