Reorg index and focus_editor params on edit_mode func