preview in homepage and notes almost working