minor bug fixes

Fixes for the pages that contains a ScriptManager control