rearrange files and impliment header.ejs and footer.ejs