add menu functionality