made better scrolling vertically and horizontally