Use javascript to detect window resize and handle dropdown menu different layous.