first functional version of viewer