added layer functionality, fixed double opening of CampaignMessageBox