Homing cycle going in wrong direction

after installing homing switches the homing cycle went in the wrong directions for both X and Y axis so switched the wires which of course fixed the homing cycle but reversed the jogging and cutting direction so changed the gcode commands for direction which fixed the jogging direction but once again reversed the homing cycle again, so how do I get the homing cycle and jogging direction to both move in the right directions at the same time?. am using the Xcontroller and UGCS

never mind found it, $23