added button to delete empty layers