rename params to _params
fix flash and message error