creates and updates task in projects