added stack control and page view control