clean up view logic a bit.