category tree and categoru edit jq fixes