Added URL page function and improved error handling