delete and add new applications