add missing libs and use partials for identical rendering of each viewer