added pause and menu base