first version of error and loading pages