added a condition in views to check if common data hash is not empty