moves clickaway event till after show to prevent bubbling from toggle to doc