prevent cursor from landing off list when switching between lists