cleanup and implement deactivation of dic in action