Replaced programmatic styles with css styles