controller for sms finished