Fixed template lookup problem in create new record modal
Moved new record logic from libris to draft.