move task controller logic to service class

tasx-6