added some menu functionality