Extract function "component" to common
Designed context menu's glade