added create NewPage functionality