OpenFileMain to display error message