Added edit template and routes