got rid of some duplicate code with gui.primary_panel.dropup.close()