Border and limited refresh implementation
Fix of cursor being out of sync with map