Change in script and dhandler for advertizement