Update index.php

special condition for annotations on attachements