implemented showDetails