Seperate GUI-Logic and program logic.