Formatted and moved all of the HTML to actual HTML instead of php echo.