fixed edit handler and route