added an error page in case generatePoem raises an exception