implemented titanium callback method fully