Populated and attached function to #pivot dropdown.