refactoring: convert details context menu to XML resource