Added support for paste and cut events