Added error handling (404/500) and basic views