Implement selection-changing logic in main