some steps to improve html rendering