replaced inline styles with classes