Added codes to allow items to be sortable