added getSubjects method in Controller