fixed bug of gray scale and pop up