Fixing popup so screen doesn't white out