begin to write main sch UI