adding view templating and viewer option