Adds button and on warning callback