add public controller post and page