Add some event function for block