add new function for competition in student tab