removes hmtl white space, cleans up all code