changed inline styles to classes with internal stylesheet