added coursor color and improvements in insert