fix format issue, and gui