removing overlay and wrapper when anywhere outside the wrapper is
clicked