added basic menu functionality