Assigning position to list item after creating