noy button functionality fixed