[FIX]warning when no record selected and improve design