diff --git a/UIStuff/UI_Stuff/ChallengeData.tsx b/UIStuff/UI_Stuff/ChallengeData.tsx
index 0abdff0945fa03377da39b257b6246a4c86730fd..4f17f16f759e83faada12017e6dcc11a887e13b3 100644
--- a/UIStuff/UI_Stuff/ChallengeData.tsx
+++ b/UIStuff/UI_Stuff/ChallengeData.tsx
@@ -116,7 +116,7 @@ export function getRank(){
     Axios.get(`http://213.188.152.167:5000/challengeData/${getPlayerId()}/5`).then((response) => {       
         
         size = response.data.size();
-        for (let i = 0; i < size; i++) {
+        for (var i = 0; i < size; i++) {
             rank = rank + getMinPerK(response.data[i].time, response.data[i].distance);
         }
         
diff --git a/UIStuff/UI_Stuff/components/TopBar.Tsx b/UIStuff/UI_Stuff/components/TopBar.Tsx
index 54f66b0c1e706b247f692ce775d67db5359ce1a6..f8f15f5af5ea394900bb89c3828ab5176e599308 100644
--- a/UIStuff/UI_Stuff/components/TopBar.Tsx
+++ b/UIStuff/UI_Stuff/components/TopBar.Tsx
@@ -22,6 +22,10 @@ import AsyncStorage from '@react-native-async-storage/async-storage';
  */
 export default function TopBar({ navigation, route }: RootStackScreenProps<'Modal'>){
 
+    const [lvl, setLvl] = useState(0);
+    const [lvlProgress, setLvlProgress] = useState(0);
+    const [coins, setCoins] = useState(0);
+    
     
     
   
diff --git a/UIStuff/UI_Stuff/screens/MainPage.tsx b/UIStuff/UI_Stuff/screens/MainPage.tsx
index 3171c506b6d54f6ede4fa47803b21834845c7840..112fa248969c9e046379d1d5d76a2b6be317780f 100644
--- a/UIStuff/UI_Stuff/screens/MainPage.tsx
+++ b/UIStuff/UI_Stuff/screens/MainPage.tsx
@@ -21,6 +21,13 @@ import LoginPage from './Login';
  */
 export default function MainPageScreen({navigation}: RootStackScreenProps<'CreateRunPage'>) {
 
+  const [refresh, setRefresh] = useState(0);
+
+  useEffect(() => {
+    
+    
+  }, [refresh])
+
   
 
   return (
@@ -52,7 +59,7 @@ export default function MainPageScreen({navigation}: RootStackScreenProps<'Creat
               </Pressable>         
               <View style={{ backgroundColor: 'rgba(0,0,0,0)' }}> 
     </View>
-         <LoginPage></LoginPage>
+         <LoginPage ></LoginPage>
         </View>
         </ImageBackground>
     </View>