rooted my phone but want to go back to stock rom Okay so i rooted my Samsung Galaxy Express to jelly bean 4.2.2 using the method below. 
but i cant access Samsung kies because it doesn't recognize rooted phones. So i was wondering if there was any way to keep the rooted features but go back to the stock rom? And if there is how do i do it and where do i get the file from?

Here are the steps I took to upgrade my phone:


  Flash Clockwork Recovery
  
  
  Download Express OUDHS CWM.exe.
  Turn off the phone
  Press and hold volume down and power to enter download mode (if this doesn’t work, press and hold volume down, power and home key)
  Connect your phone to your computer via USB
  Window ID: COM should be highlighted in yellow, this means your phone was properly detected
  Press start and wait for installation
  Disconnect your phone, recovery is now installed
  
  
  Install SuperSU
  
  
  Download SuperSU v1.25
  Connect your phone to your computer via USB
  Copy the SuperSU v1.25 file to the root of your SD card (make sure you have an SD card in your phone)
  Turn off your phone
  Hold volume up, power and home key to enter recovery (as soon as you see blue text on the top of the screen that read entering or
  booting recovery, immediately release all the buttons)
  Click on install zip from SD card and locate SuperSU file
  Select the SuperSU file and install
  After installation is complete, reboot your phone
  
  
  You will now have both custom recovery and SuperSU installed on your
  phone, which allows you to install custom ROM’s, which is the next
  step. (Make sure USB debugging is still enabled). Please note that
  these versions of CM10.1 and CM10.2 are unofficial builds, however are
  stable enough as daily drivers.
  
  
  Download CM10.1(Android 4.2.2) or CM10.2(Android 4.3)
  Download Gapps (Google Apps) for CM10.1 or Gapps for CM10.2
  Connect your phone to your computer via USB and place ROM and Gapps files in root of SD card (make sure they are on SD card)
  Download ROM Manager and reboot into recovery. You can also manually reboot into recovery by powering off your phone, pressing and
  holding volume up, power and home key.
  Create a backup.
  Wipe data/factory reset, wipe cache partition and dalvik cache (found in advanced)
  Install the ROM from the SDCard
  Install Gapps from the SDCard
  Reboot phone and let it sit for a few minutes while it boots for the first time. It may take a few minutes, and this is only evident
  upon initial boot.
  
  
  You will likely run into issues with non functional WiFi. To resolve
  this, after flashing the ROM, follow these simple steps:
  
  
  Download this file.
  Power off the phone.
  Hold volume down, power and home button to enter download mode.
  Press volume up to enter download mode.
  Connect phone to your computer
  Open Odin and flash the downloaded file as Bootloader (You should see a green box that indicates that the method passed and worked)
  Reboot the phone and test WiFI
Samsung Kies is no longer recognizing your phone because you've replaced the operating system by installing a custom ROM (CyanogenMod in this case.)  Simply rooting it and leaving stock Samsung firmware would've been sufficient, and wouldn't interfere with Kies.  You should have stopped after the "Install SuperSU" step.

With that said, here are the instructions for returning back to stock Samsung firmware:


Galaxy Express comes in different flavors, depending on your country and/or carrier.  Find out the exact model number of your device (e.g. GT-I8730/T for international version, or SGH-i437 for US AT&amp;T/GoPhone) and download the latest firmware from here. Make sure to pick the correct region.
Make sure you have taken a full backup of the contents of your device. Flashing factory firmware will wipe your device clean.
Extract the downloaded zip file to your desktop. You should get a file with a .tar.md5 extension (.md5 extension may not be visible in Windows)
Download ODIN (instructions here). This is a special tool used to flash firmware files on to Samsung devices. Extract the downloaded zip file to your desktop
Make sure you have installed all the necessary device drivers for your phone on your PC. You can also get the drivers by installing Samsung Kies
On your phone, enable USB Debugging from Settings -> Developer Options
On the PC, launch ODIN. Click the PDA button in ODIN and load the stock 4.1.2 firmware .tar file you got in Step 3
Make sure everything else in ODIN is left at default values. Just make sure Auto Reboot and F.Reset Time boxes are checked, and the RePartition box is left unchecked
Switch off your device and reboot it to Download Mode by pressing and holding Volume Down+Home+Power buttons together. At the warning screen, press Volume Up to enter Download Mode
Connect your phone to the PC via USB cable now
ODIN should display the message Added! and the ID:COM port box in ODIN will turn yellow
Click the Start button in ODIN to start flashing the stock firmware on to your device.
Once ODIN has successfully flashed the file, it should display the message PASS!, and your phone should reboot automatically
Disconnect your device from the PC now, and proceed to set up your phone.


After the above process is successfully completed, you can try rooting your phone again.  This time do not install a custom firmware, and you should be all set.