adding avatar helper and index status with avatar