Refactored visualization.py to use GUI via XRC