[FIX] JS call on show and edit templates