updated to add tabbed preferences