Refactor click on joseph result