many fixes to adaptive html