change event parameters to take css class instead of just background color