scms - used better selectors at determing if html page has $subpage or not