Added mastery page functionality