changed last check
added a check for a not probable oob
changed bg color
added memory cache to improve scrolling performance