updated export feature to show messagebox when successful