added a shared service

sharing between controllers. need to clean up a bit