Separated gui functions from solution