beforeSendingAction