AGN in dusty hosts: implications for galaxy evolution