Add terms page and fix bug