implemented simple preview tool