Updated with inline styles and more concise api