Update preferences and style