adding scroll function
fixing layouting