redirect will be placed once HTML is compelte