update tile input and add location