added gui controller to main