added the file chooser and moved messages around