add <head> and <title> to index