Add add button function for dynamic adding of buttons