Changed method used to store selected student (fixes #22)