File selection through dialog and searching implemented. Dialog Box does not close after file selection.