completed button handling: works now in two directions (planet -> button, button-> planet)