UI,Logic
Medium Refactoring