the problem of data transfer to button callback is solved