formatting code to make pretty html