Restrict history to 200 slots
Fix history div update function.