Allow initializing with an array of titles, in addition to args

This gives more flexibility. Also right now there seems to be an issue with button alignment when addButton is used. So this new init method will be helpful.