fixed up menu etc, added buttons for pages