add categories and post updating