improved layerwidget, added delete button for the layers etc