Refactored FileMenu into its own class for the view

fixed error in preparser for input length 0