colse popup when outside of popup window is click