changed some variable types and detail fields do display prepared