events in main function (given to the methods using those)