Added UI and implemented openFileDialog.