add security and remove category pagenator