I have finally found a pattern I like which is function, function_callback, and function_form for the backend, callback, and button handler respectively.