Added error handling to view event, non existent ID triggers 404, added a test for the 404 condition as well