Add maxCols to dialogs method
Move dialog button prototype into sector