added ajax and formatted main content box