wired library header buttons to ORDERED_ENTITY_ARRAY