fix preferences, layout