remove primary actions from list of options for dropbutton. code cleanup for dropbutton