Pass details to context menu function