history buttons fix