Got ReplaceElement working. SwapElement no longer needed. Updated panel.