fixed edit using wrong template