Made the AutoWire button functional