implemented file selection in browser