improve #579 and make background manipulation applied to all background
trace message added to record windows change