added hist sync and arrow delete, and hist autoadjust