implemented gui handling for WMS layer, fixed some of WMS merge bugs