advertisment controller and factory