refactor backup menu and functions