fix all errors
add histogram painter