Hi Marty I'm no expert but it sounds like when you connected into the live at the junction box, you have connected after the main circuit switch. This means your new circuit will only have power when your main switch is on,(and then your new switch will work). This is also why your main light dimmer...