[Refactoring] Refactored the entire refactoring frontend; Fixed #246 by forcing the user to select one item to proceed with