handler added for dropdowns be more responsive and window sizes changed