add states to action buttons