Adding new button in blender( like the object,add, select, and view buttons)?

OK, so I was trying to figure out how to do menus instead of panels. I accidentally created a button like the object, add, select, and view, in the 3D view. I was gonna save what I had ,but wanted to do a little more. I some how messed up what I had. I’ve spent the last couple hours trying to figure out how I got that button and can’t figure it out. Any ideas?