fixing view templates