scms - fixed $subpage part and made it better