bug #85664
reimplemented the category move functions and fixed the positioning of
categories