Refactor doc show