update cms plugin to provide pagination