update cursor to match statement color