Now loads either pages or segments based on characters.
Will remove file menu.