Titans' improved defense helps spark turnaround