finish UI class