new-file button now opens a dialog to match rename-file
removed unneeded javascript