implemented preferences in the ui for emailing students and advisors