Split error and loading pages