Added save as functionality to UI

The timing of what you're doing here is wrong.  Remove this line.