generate_nback is working with ui.py