Add view logic to GUI