getting BIDs and making a button