Implement automatic button generation