Added function change priority of an item