Theres two switches side by side in the same box by the entry door and the switch on the right switches on and off the porch light and the switch on the left will turn on the hallway lights and also works with another switch at the end of the hallway to turn on and off the same lights so that must be a two-way switch and the one for the porch light is just a regular one I guess and I want to change the porch light switch to a wifi enables paddle switch so I hooked it up the way I thought it would should go and something is wrong because whenever I turn off the hallway light the switch will turn on for the porch but if I turn on the hallway light the porch switch will turn off. The way it was wired before was the hallway light switch had two wires going in on top and the one wire on the side on the bottom was hooked up to it with the screw and it also ran to the porch light switch to the bottoms screw so I'm wondering what is that wire that runs to both switches in line with each other. Also I was reading something I'm about switches earlier that talked about joining two wires together and plugging in a pigtail from them is that something I would have to do here?