dynamically check routes for edit button
fix deposit batch code