standardize view initialization.