handling events triggered by the chosen