refactor style and add title style