modified gui to use constants.py