Moved setting border to inside update_page_stuff()
Added scrolling to thumbnails when scrolling document; added page numbers to thumbnails and fixed background colours