Added a dialog after last click