added redirect funktionality