refactoring prepend_and_append_input to use the same option names for buttons and addons