Removed debugging log
Added codes to prevent cursor from changing when rearranging items