Add return statements in window_handler and add extra condition for mouseclick in TTT.py