changed callback to be inside footer