update preferences js for tabbed ui