added listener for oncontext menu