fix dropdown items going off screen

This was an issue involving the drop down menus containing too many items that leaves "excess" items going off screen and not being able to see/select them. 

My laptop screen resolution is 1366x768. 

The code makes the drop down menus scrollable when it reaches the max height.