* Extract ui code in bmk
* Separate code in classes