changing redirect code
adding redirect code to each page