add some cursor movement function