refactoring, add karma update on link click