write UI