events binded to the relevant function