Added callbacks to modal