preliminary work on adding remove_function_button