change structure of the document right click menu

because of the chrome doesn't really support the onclick method