Added further code to handle scrolling of the entity display.