implement main menu functionality
add text input handler