migrate android ui code to scala