edit logic in show gif view