delete show and hide elements function