Family, work and quality of life: changing economic and social roles through the lifecourse