fix error/loading pages