add switch action
Merge pull request #414 from joelmo/switch_action

add switch action