Updated MainActivity to allow for infinite scrolling