added if loops for gsub method in _properties.html.erb