Added UIResult to capture result from UISystem method handleResult

You can capture a result from UISystem now.