fixing issue by giving all buttons&texts variables