Hooked up the "close," "save" and "revert" actions.