Fix and improve resource viewer in NPC admin. Closes #205