modifying starting and ending html formatting