refactoring clear diaply calls to refresh page - this is with the intention to add the history updates here