fix popup display background and layer toggle