Fixed backend bug with rendering error page, added some functionality to...

... frontend