init class ui, search and variable of class