implementd onclick listener in result activity