logout and update coordinates