Process subpage before other page widgets

This update also prevents the parent page from being removed from the
DOM if the child still exists.