deactivate unpublished pages and their category