update redirect.php
update templates
update main.php