refactor data sharing ui