added a javascript alert to display an error when does not exist.