LUBIS: refactor lubis mako
Refactor viewer