Implemented basic error handling and page