cleaned up a lot of code. Server now keeps track of logged in user's location. Also added a loading spinner