added attachment edit hook call