move cursor to the last position upon open