Added preview for xpath lookups

added preview for xpath lookups. some formatting changes here n there