use main_layout instead of tempmaster