framework not working with dom that is already added.