pass doc name to show function. If none was there - just pass empty map