Updated the headers for displayEntities to use variables