detect if user tries to delete plugin that is being used, display warning box instead