create a serviceand inject to all controllers