add create page function
update migrations to resolve errors in creating pages