update the RData file and ui