added checking for essays and submission page