refines master page