correcting scrolling on classes view