Move datetime string generation to model
Make added detentions appear immediately in list