Created overlay factory to trigger modal from controller.