initial convert ui to py