set selected task in service