Make new and edit file submit more uniform