disable popup mode when embedding enabled