Merged send action into if elseif block of actions