Added functionality to the button callAgent