added  variable to edit_page and edit_subject and changed get_all_subjects function in functions.php accordingly.