only compile dropdown menu when first toggled