Added getCategoryIndex and working on Create NewPost