minor view code improvements