add preview for signup and edit