manage category as entity