improved editor styles; location changes handling