gui.py update

now for loop working on gui
uncomment FOR loop

uncomment FOR loop