create category assignment on new and edit post