changing page layout method