ui: Add logic to update result field