setting up Events