Adding Save button and code to get output text