Applying the menu functionality.