updating the bottom bar with the current cursor position.