add ssl in production
fix view error