Add the behavior for the ResultActivity