enable html5mode; fix minor visual issues