Fixed some minor errors with html templates