Finally got the dependent select dropdown working