added widget to student show and pushed logic to model & controller