added subpage routing and automatic update of subpage slugs