add main.py and flat ui libs