Fixing the new file dialog to create file upon enter
Updating templates to check to see if a dialog has already been created for the template