fixed html error and added var