added scrolling on screen edges (but doesnt seem to work that good)