updated file selection widget, fixed bugs, added functions