apply changed function to UI class