corrected generate numbers btn