updated category controller