UI updates, fixed bugs ,refactored end_turn_button