add button to toggle between showing list of recent relations and list of recent codes