added template modal