fixed edit route without needing to use "this"