menu functionality added, not perfect