refactor admissions controller