added an object to control the ui