added category selection to edit panel