ui initial code