finished cleaning up studyarea controller. fixed bugs