Button in dropdown changed to span
correctly handling callback errors