created association between the post and category and update some files