added update and close button to weight dialog