fix preview bug
fix writer page bug by adding callback
Add purely writing page