Modify method of changing color and opacity