add close and save buttons