function beforeToHtml() { parent::beforeToHtml(); $this->_view->selectedtab = $this->_request->getParam('tabindex', 1); }