moves gui setup into controller