update ui and image