refactoring case cancel link