Loadview helper and small restructuring