guide flow working with AJAX for buttons