tidy html function added