custom 404 error handler

plus fixing issue with css rendeing in layout