updated styling and adding scroll event