add flash message and fix ntd chosen bug