sets up before save action
needs to fix before save action because all dates are false