Added handlers for move event