Converted preferences to a jQuery UI tab widget