formatted the redirect htmls