creating pages on init