Change building of file picker to event handling.