add redirect to state and table