fix env toggling, improve error page styling