removed commented-out code
update item on webpage when closed
Improve Close dialog