handle background changes only when widget realized