Fix some php warning and add title of html