removed inline styles and added classes to template