Could we maybe refactor this into a common function to call instead? These same 5 elements get this class toggled so it would be less code in my mind.