added posts and categories controllers