added code to right click rest.