In a greased deep pie dish, spread the refried beans and then layer the chopped green chiles on top.
For the next layer combine the sour cream and mayonnaise. Continue layering the avocados, lemon juice, salsa, and top with the two cheeses and green onions.
Bake for 20-30 minutes until heated through and bubbly.