Use "send" function to call the actions dynamically