modify and remove activity