fixed categories being draggable, added support for hierarchies in the querypanel