I see a couple of things pretty quickly. First your DPDT switch is actually two switches and will need two digital pins. A pin to each throw and ground off the center.
It's pausing every time through loop when the switch is not on because of the delay after turning the relay and led off. I doubt this delay is necessary. Try removing it.