showing report link in console
removed duplication
refactoring