added dismissAlert