adding actions and states