added in the new page and some new code for custom fields