better remembering of state in the ui
fix selectedFile highlighting