various fixes to add task and selecting tasks