added HTML elements and logic as well as inline styles