added popup and fixed sharing completion block