Add a button to delete an Element
Close the config mode when opening the config dialog