added method for adding buttons by passing in titles