format code,fix settitle