adds error handling to opening website