removing debug and adding scroll reset