[BUGFIX] Show duplicate button only if it makes sense