Adds page creation functionality