duplicate function and right menu