added condition in creating task with select project