file selection changes stuff on the menu
store selected branch