Added rudementary support for smart scrolling