preference categories
fixed crash on onrientation change