before changing viewfile IDS