modified for scrolling & impage expand