add drag and drop to categories save and fix bug headtable