complete the right click function.