Finalized menu functionality

Menu functionality was added and selecting leaves option is enabled