showing empty list warning in alert instead of label