moved all the show/hidding of row elements to one function.  Still trying to figure out how excecute the proper code inside of the new function, according to the preferences that have been passed in.