added buttons for page control
fixed navigations stack bugs