Adding ui class responsible for creating the UI.