How to show popup only on homepage

There is need to do small changes in this file:

app/code/community/ES/Newsletterpopup/Block/Popup.php

Please open it and find this method:

public function isActivePopUp()
{
    return Mage::getStoreConfig('newsletterpopup/popup/isactive') && Mage::getStoreConfig('newsletterpopup/general/is_active');
}

Change this method to:

public function isActivePopUp()
{
     if ($this->getPageId() != 'cms_page_ID') {
         return false;
     }
     return Mage::getStoreConfig('newsletterpopup/popup/isactive') && Mage::getStoreConfig('newsletterpopup/general/is_active');
}

and in this method you have to change "ID" to your home page ID for example to cms_page_2.