update master page and handler