Fixed modal click to close playlist logic