Added edit_index and a bunch of routes/actions for transitions. MUST REFACTOR