added redirect after flag save