Custom error pages, small fixes