added the ui elements