change tab as a trigger of xptemplete