improves view logic slightly in terms of nice code.

no dunctional difference.