added aftersave trigger