works for teacher. See what I did in line 4 and 9 of team.js? Replicate that in every other function that you need for this effect to happen.