Add a logic to determine if we want to show the stat button or not to link to dashboard