keep cursor in the middle