yui sandbox to create update function