begin writing UI