added confirm dialog and minorfixes to next appointments