added category functions on category manager