found simple and beautiful example that solved my problem with reverse redirection