fix flash msg, rm ajax (never be used)