changed getView() to rootView to make the findViewById work.