fixing history buttons