update UI to use class methodsx