adapted the material design for older versions