can now display categories in edit mode, but there is a problem with duplicating category panels