moved ajax calls into own sercies which can now be injected into different controllers