added error page and changed deploy script