UI Base setup

This commit adds the basic functions needed in the UI. Soon the
remaining functions will be added.