setprefs cgi to handle row pref