Improved work with cursors, trying to optimize selection bar rendering