category tree converted to jstree and login cookies fixed