initial GUI code