Updated the views and made a better error page
Added env var for ES