made gui controller stateless