Added option for newPage in addition to newPost and editPost.