Reduce complexity of the UI class