Also your D/W should be wired to you black wire it should not be on a switch
Bullshit your red wire is the switch leg the black is constant hot and white is neutral, there should be a copper wire [bare] for equipment ground
The red wire is the live wire the black is the nutril and the white wire is the old colour of wire used for the earth.