update media root and urls