add menu bar and use openfiledialog to openfile