Added a dialog when select subject