Fixed a bug with disabling the submit button. Cleaned up the file name handling to make it more consistent once the file name is known.