add edit_middleware
0.2.0