make those nasty variables static, also fix a html bug