Transaction modal window. Save and Close buttons functionality