added a nil check to summary to prevent the gsub for escaping paths from crashing the view