framework of model viewer