refactored the cli into menu classes