Added action on switch control in Demo project