use resource type to determine which object viewer to render
fixed conflicts in metadata viewer