added error handling & link opens on new page