added html footer function