refactory default view