VPN Failover issue

Head office is having Fortigate Firewall with ISP1 and ISP2. branch ofiice having RB750 with two Ipsec tunnel and 2 ipsec policies. vpn is working fine but when isp1 fail isp2 will start then branch should also used second ipsec tunnel and second ipsec policies. how to do failover.