Changed functions type renering
Now Saves lat and lng