add function to log all drop and resize event