Refactoring of the "on-click" section.
Can be made more user friendly, especially by setting the ring nr
automatically