added buttons and pages