Fix history page double negative sign & remove unused code