update pages for add and edit category.