Added logic for isFolder in double and single click events in square.py