added task position functionality