html 5 head for resmanager and some clean up