adding create page functionality