Melt butter in a skillet and cook peppers, onions, jalapeño and corn until lightly caramelized.
Mix cooked quinoa and lime juice together then layer it into your casserole dish.
Spoon refried beans over the quinoa and spread out as best you can. (They will spread out more when cooking.)
Layer on pepper and corn mixture. Spreading evenly.