Added subject has_many pages relationship