fixing refresh issues with floating windows