Genetic and cellular analysis of modulated behaviors in Caenorhabditis elegans