added first part of the gui (main)