updated backend by creating functions for start a task