implementing the remainder of dropdownmenu