move all transition actions to routes