Added function calls to history buttons, made them buttons instead of preview buttons