updated uifragment example code