Iteration edit with higher priority_id in html