Added method resetUI() and updated method openFile() to proper change the ui