merge datastruct and ui