view / template compilation fixes