added ex2 generated ui