Legislation aims to improve oversight of nursing homes