Added show advertisement  functionality