add conditional to pinning modal