how to create page dynamically