adding save and new file feature