refactoring and change details link