added animation and the preview