some constraints functions and UI were defined in EScript