fixed the preferences layout