Adapted to work with updated inview, inviewTop