tried to make location in main activity, but didnt work correct