added main area functionality. shoudl refactor keyboard though