created views and controllers for categories and posts