history page + delete functions