added category and setactive