Access the correct variable to get css classes