moveBefore and moveAfter working again