there are a number of problems
1, toggle LatB.4 is a no no. toggle or any other pbp high level command will not function correctly with LATx regs and can only be safely used with PORTx regs
2. you have not selected a clock source for timer1 see T1CLK in data sheet
3. dt ints will not enable intcon PEIE you need to