Melt butter in a 9-inch skillet.
Layer potatoes, onions, salt and pepper. Pour milk over it.
Begin cooking on medium heat until cover is very hot. Reduce to low and cook 25 minutes.
Last 5 minutes set lid ajar to allow some steam to evaporate. Sprinkle with cheese.