Code to display Modal confirmation dialog which returns boolean value