added handlers for starting and stopping the domains