creating viewer