Portable user interface library for small embeded devices