begin to write sch main UI