Add crud redirect function