first work on GUI.