add popover and overlay mask