public function getMainButtonsHtml() { $data = array('current_view_mode' => $this->getParentBlock()->getViewMode()); $viewModeSwitcherBlock = $this->getLayout()->createBlock('M2ePro/adminhtml_ebay_listing_view_modeSwitcher'); $viewModeSwitcherBlock->addData($data); return $viewModeSwitcherBlock->toHtml() . parent::getMainButtonsHtml(); }