Require Prompt for remove layer OR undo button

Have you ever wanted to rename a layer and accidentally removed it? Then you had to go and add the whole service again and remove the additional 10 layers that you didn't want to add again? Its the worst!