Unifing gui and logic, first step.