Why my preferences window displays differently?