fixed edit page bug by modify edit action in controller