add buttons for adding gate and multigate