Added functionality to gui i student