added save functionality to open if their is text in the control