sendsms function added to sms controller