add next class working perfectly in date or attended view