updating data object and jsapi
updating ui and fn