Add preview button to edit page