fixed history bug and created preview

yup yup