reorder activity code