fix sync issue, sort issue, and add color bar