change hard coded resource id for scrollview in layout to use instanceof instead