move error handling to errors component