added error modal