added update item functionality