hook up save on create and update actions