fix issue for click to background of modal