fix state.go on preview trail submit, add geofence template