Well i updated to 5.1.0 , all was well .. then when i woke up i checked the site and now its pointing to the setup directory , i reinstall and it still is only pointing to the setup directory, i can access the admin panel though ! :| ?
I replaced the setup folder and the index.php from the 5.1.0 zip folder , and it stopped the issue.