Delegate method update

added parameter to get user entered text through delegate method.