refactor showentry with api