Added code to create a new page or get existing