moved skin setting into class State